package com.kaifamiao.ajax.service;

import com.kaifamiao.ajax.entity.Student;
import com.kaifamiao.ajax.exception.ServiceException;

import java.util.List;

public interface StudentService {

    boolean save(Student s) throws ServiceException;

    boolean update(Student s) throws ServiceException;

    boolean remove(Long id) throws ServiceException;

    List<Student> loadAll() throws ServiceException;

    Student load(Long id) throws ServiceException;

}
